/*
 *                    COPYRIGHT NOTICE
 *
 *           This code is copyright protected by Freedom Inc.
 *
 *              2001-2012 All Rights Are Reserved
 */
package com.freedom.oldsong.system.model;

import java.io.Serializable;


/**
 * @author steven.wang
 *
 */
public class MenuItem  implements Serializable {
	
	private static final long serialVersionUID = -5913075003304183431L;

	private String systemType;			// must, what's the system type

	private Integer index;
	
	private String parent;				// must, what's the parent menuitem
	
	private String after;				// put after which menuitem, if null, put it in the last
	
	private String name;				// must
	
	private String displayName;			// it will be displayed in the page, maybe will i18n later
	
	private String icon;				// if given, must be full url path
	
	private String src;
	
	/*required privileges to access this menu item, format is comma separated,
	 *the privilege can be the following:
	 *ROLE_xxx:xxx role(xxx is the role id in database)
	 *PR_xxx: xxx privilege(xxx is the identity column of privilege table in database)
	 *For example:
	 *<requiredPrivieges>ROLE_1,PR_MAINTAIN_PROJECT_GROUP,PR_VIEW_PROJECT</requiredPrivieges>
	 **/
	private String requiredPrivieges;
	
	private String excludedPrivileges;
	
	private String requiredRoles;
	
	private String parameter;
	
	public String getSystemType() {
		return systemType;
	}

	public void setSystemType(String systemType) {
		this.systemType = systemType;
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getAfter() {
		return after;
	}

	public void setAfter(String after) {
		this.after = after;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getRequiredPrivieges() {
		return requiredPrivieges;
	}

	public void setRequiredPrivieges(String requiredPrivieges) {
		this.requiredPrivieges = requiredPrivieges;
	}

	public String getExcludedPrivileges() {
		return excludedPrivileges;
	}

	public void setExcludedPrivileges(String excludedPrivileges) {
		this.excludedPrivileges = excludedPrivileges;
	}

	public String getParameter() {
		return parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	public String getRequiredRoles() {
		return requiredRoles;
	}

	public void setRequiredRoles(String requiredRoles) {
		this.requiredRoles = requiredRoles;
	}

}
